package by.parfen.game.datamodel;

import java.io.Serializable;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;

public class GamePortal implements Serializable {
	private static final long serialVersionUID = -8124857117363993029L;

	private String name;
	private Queue<GameSession> gameSessions;

	public GamePortal(String name) {
		super();
		this.name = name;
		this.gameSessions = new ConcurrentLinkedQueue<GameSession>();
	}

	public GamePortal() {
		super();
		this.gameSessions = new ConcurrentLinkedQueue<GameSession>();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Queue<GameSession> getGameSessions() {
		return gameSessions;
	}

	public void addGameSession(GameSession gameSession) {
		gameSessions.add(gameSession);
	}

	public void removeGameSession(GameSession gameSession) {
		gameSessions.remove(gameSession);
	}

}
